public class ChildrenDiscount implements Discount{
    @Override
    public double calculate(double price) {
        if(price>=20){
            price-=10;
        }
        return price;
    }
}
